<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Class Contact_object extends Base_object{
	
	const PRIMARY_CONTACT = 1;
	const SECONDARY_CONTACT = 2;
	const BILLING_CONTACT = 3;
	
	private $id;
	private $title;
	private $designation;
	private $firstname;
	private $lastname;
	private $email;
	private $phone;

	public function __construct($id = null, $title = null, $designation = null, $firstname = null, $lastname = null, $email = null, $phone = null){
		$this->id = $id;
		$this->title = $title;
		$this->designation = $designation;
		$this->firstname = $firstname;
		$this->lastname = $lastname;
		$this->email = $email;
		$this->phone = $phone;
		parent::__construct($id);
	}
	public function getId(){
		return $this->id;
	}
	public function getTitle(){
		return $this->title;
	}
	public function setTitle($title){
		$this->title = $title;
		$this->markDirty();
	}
	public function getDesignation(){
		return $this->designation;
	}
	public function setDesignation($designation){
		$this->designation = $designation;
		$this->markDirty();
	}
	public function getFirstName(){
		return $this->firstname;
	}
	public function setFirstName($firstname){
		$this->firstname = $firstname;
		$this->markDirty();
	}
	public function getLastname(){
		return $this->lastname;
	}
	public function setLastname($lastname){
		$this->lastname = $lastname;
		$this->markDirty();
	}
	public function getEmail(){
		return $this->email;
	}
	public function setEmail($email){
		$this->email = $email;
		$this->markDirty();
	}
	public function getPhoneNumber(){
		return $this->phone;
	}
	public function setPhoneNumber($phoneNumber){
		$this->phone = $phoneNumber;
		$this->markDirty();
	}
}